package pl.register.android.classes;

import pl.register.android.rating.Rating;

import java.io.Serializable;

/**
 * @author Mateusz Strzelecki
 * @since 2013-04-14
 */
public class Classes implements Serializable {

    private Long id;

    private ClassesTopic topic;

    private boolean presence;

    private Rating rating;

    public Classes(boolean presence, Rating rating) {
        this.id = null;
        this.presence = presence;
        this.rating = rating;
    }



    public Classes(Long id, ClassesTopic topic, boolean presence, Rating rating) {
        this.id = id;
        this.topic = topic;
        this.presence = presence;
        this.rating = rating;
    }

    public Classes(ClassesTopic topic, boolean presence, Rating rating) {
        this.id = null;
        this.topic = topic;
        this.presence = presence;
        this.rating = rating;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public ClassesTopic getTopic() {
        return topic;
    }

    public void setTopic(ClassesTopic topic) {
        this.topic = topic;
    }

    public boolean isPresence() {
        return presence;
    }

    public void setPresence(boolean presence) {
        this.presence = presence;
    }

    public Rating getRating() {
        return rating;
    }

    public void setRating(Rating rating) {
        this.rating = rating;
    }

    @Override
    public String toString() {
        return "Classes{" +
                "id=" + id +
                ", topic=" + topic +
                ", presence=" + presence +
                ", rating=" + rating +
                '}';
    }
}
